Skip to content

fix: show component lifecycles on the home page - #152

Merged
johnnyhuy merged 1 commit into
mainfrom
agent/issue-151-home-component-lifecycles
Nov 16, 2026
Merged

johnnyhuy merged 1 commit into
mainfrom
agent/issue-151-home-component-lifecycles

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

The home page now shows component lifecycle counts from catalog metadata, replacing the misleading overall system-health percentage and health colours. The card explains its source, distinguishes loading, empty and unavailable data, and links to the component catalog.

Part of #85
Closes #151

Verified in this worktree

  • MISE_TRUSTED_CONFIG_PATHS="$PWD" mise run install passed with existing peer-dependency warnings and no dependency or lockfile changes.
  • MISE_TRUSTED_CONFIG_PATHS="$PWD" mise run lint passed TypeScript and ESLint across all five workspaces.
  • MISE_TRUSTED_CONFIG_PATHS="$PWD" mise run test -- --runInBand --verbose passed 76 tests in 11 suites, with one existing skipped test and suite.
  • BROWSER=none MISE_TRUSTED_CONFIG_PATHS="$PWD" mise run dev compiled successfully. The frontend and backend readiness endpoint both returned HTTP 200.
  • Local Chrome through the Playwright CLI signed in via Guest > Enter, rendered the card with the real local catalog response, and followed Browse components to All Components (13).
  • git diff --check origin/main...HEAD passed.
  • mise run build was not run locally because this is a frontend-only slice. The PR Build workflow runs all four mise gates, including the Docker image build, without publishing an image.

Screenshot method (a) succeeded through the local Playwright CLI fallback, invoked via a temporary mise task. Paseo capture was blocked by "No browser automation host is connected". The browser and dev stack were stopped after verification.

Component lifecycle summary from the local catalog

Home-page viewport shows the surrounding layout at 1440x1200. The page uses an internal scroll area, so that capture is a viewport rather than the entire home-page content.

The five new regression cases passed

PASS app packages/app/src/components/home/HomePage.test.tsx
  HomePage component lifecycles
    ✓ counts component lifecycles, including custom and missing values, without claiming health
    ✓ explains the data source while loading and does not show zero counts
    ✓ distinguishes an empty component catalog from unavailable data
    ✓ reports unavailable data after a catalog failure without showing empty or zero counts
    ✓ keeps loaded lifecycle counts when a later template request fails

Test Suites: 1 skipped, 11 passed, 11 of 12 total
Tests:       1 skipped, 76 passed, 77 total

The verification transcript includes the timed test result block, lint output and browser capture commands. No catalog responses were mocked for the screenshots. The regression tests cover mixed lifecycle values that are absent from this local catalog snapshot.

Existing jsdom stylesheet and React/MUI warnings appeared in tests. Browser/dev warnings included the signals WebSocket 404, React deprecations and missing TechDocs search indexes. Those remain outside this slice. Lifecycle availability still follows the existing initial catalog request group; another failed request in that group makes the card unavailable rather than showing zero counts.

The parent epic stays open. Public-demo readiness and landing-page visual direction remain separate decisions.

Replace the lifecycle-derived overall health percentage with labelled component counts and explicit loading, empty and unavailable states.

Co-authored-by: OpenAI Codex <noreply@openai.com>
@johnnyhuy
johnnyhuy merged commit 5bb753f into main Nov 16, 2026
5 checks passed
@johnnyhuy
johnnyhuy deleted the agent/issue-151-home-component-lifecycles branch November 16, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show component lifecycle counts instead of health claims on the home page

1 participant